package com.lili.operate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.lili.model.operate.ArticleCategory;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;
import java.util.Map;

@Mapper
public interface ArticleCategoryMapper extends BaseMapper<ArticleCategory> {
    /**
     * 查询所有的文章分类
     * @return
     */
    public List<Map> queryArticleCategory();

    /**
     * 根据id删除文章分类
     * @param id
     * @return
     */
    public int deleteArticleCategory(long id);

    public List<ArticleCategory> querySon(long id);
}
